﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using 多协议通信平台.Common;
using 多协议通信平台.Views.Login;

namespace 多协议通信平台.Views
{
    /// <summary>
    /// RegisterContentView.xaml 的交互逻辑
    /// </summary>
    public partial class RegisterContentView : Page
    {
        public RegisterContentView()
        {
            InitializeComponent();
        }

        private void Proxy_Button_Click(object sender, RoutedEventArgs e)
        {
            this.NavigationService.Navigate(new ProxySetView());
        }

        private void ShowView_Btn_Click(object sender, RoutedEventArgs e)
        {
            var btn = sender as Button;
            if (btn == null) return;
            string url = btn.Tag.ToString();
            FrameworkElement frameworkElement = IocHelper.GetInstance(url);
            this.NavigationService.Navigate(frameworkElement);
        }
    }
}
